package day0613;

public class Test4 {
    public static void main(String[] args) {
        int[] a={20, 45, 78, 34, 16, 3, 99, 56};
        //用for循环统计数组z中大于50的数有多少个
        int c=0;
        for (int i=0; i<a.length; i++){

            if(a[i]>50){
                c++;
            }

        }
        System.out.println("c = " + c);


    }
}
